<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"/>
    <title>系统角色管理</title>
    <#include "../../resource.ftl"/>
    <link href="http://www.jq22.com/jquery/bootstrap-3.3.4.css" rel="stylesheet">
    <link href="../css/style.min.css" rel="stylesheet">
</head>

<body>
<div class="container-fluid p-t-15">
    <div class="row" style="font-size: 3px">
        <div class="col-lg-12">
            <div class="card">
                <div class="card-header"><h4>系统数据字典</h4></div>
                <div class="card-body">
                    <div class="input-group m-b-10 col-xs-7">
                        <span class="input-group-addon" id="sizing-addon0">应用名称</span>
                        <input class="form-control" type="text" id="roleSessionName" name="roleSessionName"
                               placeholder="请输入应用名称..." aria-describedby="sizing-addon0"/>
                        <span class="input-group-addon" id="sizing-addon1">字段名称</span>
                        <input class="form-control" type="text" id="fieldCode" name="fieldCode"
                               placeholder="请输入字段名称..." aria-describedby="sizing-addon1"/>
                        <span class="input-group-addon" id="sizing-addon1">选项名称</span>
                        <input class="form-control" type="text" id="itemName" name="itemName"
                               placeholder="请输入选项名称..." aria-describedby="sizing-addon1"/>
                        <span class="input-group-addon btn btn-info table-search" id="sizing-addon3">
                            查询
                        </span>
                        <span class="input-group-addon btn btn-primary reset-search" id="sizing-addon4">
                            清空
                        </span>
                    </div>
                    <div id="toolbar" class="toolbar-btn-action">
                        <button id="btn_add" type="button" class="btn btn-primary m-r-5" data-toggle="modal"
                                data-target="#updateObjModal">
                            <span class="mdi mdi-plus" aria-hidden="true"></span>新增
                        </button>
                        <button id="btn_edit" type="button" class="btn btn-info m-r-5" data-toggle="modal"
                                data-target="#updateObjModal">
                            <span class="mdi mdi-border-color" aria-hidden="true"></span>修改
                        </button>
                        <button id="btn_delete" type="button" class="btn btn-danger m-r-5">
                            <span class="mdi mdi-window-close" aria-hidden="true"></span>删除
                        </button>
                    </div>
                    <table id="tb_base"></table>
                </div>
            </div>
        </div>


    </div>

    <!-- 新增 -->
    <div class="modal fade" tabindex="-1" role="dialog" aria-labelledby="gridSystemModalLabel"
         id="updateObjModal">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                                aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title" id="gridSystemModalLabel">新增字典</h4>
                </div>
                <div class="modal-body">

                    <form id="updateObjForm" method="post" class="site-form">
                        <input type="hidden" id="from_type" name="from_type" value=""/>
                        <input type="hidden" id="id" name="id" value=""/>
                        <input type="hidden" id="pid" name="pid" value=""/>
                        <div class="form-group">
                            <label for="name">应用名称</label>
                            <input type="text" class="form-control" name="roleSessionName" id="roleSessionName"
                                   placeholder="请输入应用名称"/>
                        </div>
                        <div class="form-group">
                            <label for="remark">字典编号</label>
                            <input type="text" class="form-control" name="fieldCode" id="fieldCode"
                                   placeholder="请输入字典编号"/>
                        </div>
                        <div class="form-group">
                            <label for="remark">选项名称</label>
                            <label for="remark">选项名称</label>
                            <input type="text" class="form-control" name="itemName" id="itemName"
                                   placeholder="请输入选项名称"/>
                        </div>
                        <div class="form-group">
                            <label for="remark">字典值</label>
                            <input type="text" class="form-control" name="itemValue" id="itemValue"
                                   placeholder="请输入字典值"/>
                        </div>
                        <div class="form-group">
                            <label for="remark">父级字段</label>
                            <input type="hidden" class="form-control" name="pid"/>
                            <input name="selectCatalog" type="text" autocomplete="off" class="form-control"
                                   onclick="$('#addTree').show()">
                            <div id="addTree" style="display:none;z-index:1000;background-color: white;"
                                 class="treeview form-control"></div>
                        </div>
                        <div class="form-group">
                            <label for="remark">排序</label>
                            <input type="text" class="form-control" name="sort" id="sort"
                                   placeholder="请输入排序"/>
                        </div>
                        <div class="form-group">
                            <label for="remark">备注</label>
                            <input type="text" class="form-control" name="remark" id="remark"
                                   placeholder="请输入备注内容"/>
                        </div>
                    </form>

                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-primary obj-btn">提交</button>
                    <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                </div>
            </div>
        </div>
    </div>

</div>

<script type="text/javascript" src="/system/dict/js/list.js"></script>
</body>
</html>